#ifndef TCPCLIENTSOCKET_H
#define TCPCLIENTSOCKET_H

#include <QObject>
#include <QTcpSocket>

class TcpClientSocket : public QTcpSocket
{
    Q_OBJECT

public:
    TcpClientSocket(QObject *parent = nullptr);

signals:
    void updateClients(QString, int);
    void disconnected(qintptr); // 这里定义的信号能在其他文件中直接使用

protected slots:
    void onDataRecved();
    void onDisconnected();
};

#endif // TCPCLIENTSOCKET_H
